

import 'package:baby/UI/Widgets/HtmlContent/HtmlContent.dart';
import 'package:baby/UI/Widgets/HtmlContent/TransformUnit.dart';
import 'package:flutter/material.dart';
import 'package:html/dom.dart' as prefix0;

class TextInDom extends TransformUnit<HtmlContentState, Object> {
  @override
  void execution(HtmlContentState context, Object data) {
    if (data is prefix0.Text) {
      var text = data.text.replaceAll(" ", "").replaceAll("	", "").replaceAll("\n", "");
      if (text.isNotEmpty) {
        text = data.text;
        pipeLineContext.processWith(Text(text));
      }
    }
  }
}
